package com.example.demo.generator.scaffold.dto.log;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 脚手架生成日志的简要记录。
 */
@Data
public class ScaffoldLogRecord {

    @Schema(description = "记录 ID")
    private Long id;

    @Schema(description = "模块名称")
    private String moduleName;

    @Schema(description = "基础包名")
    private String basePackage;

    @Schema(description = "模块目录")
    private String moduleBasePath;

    @Schema(description = "数据库类型", example = "MYSQL")
    private String databaseType;

    @Schema(description = "是否启用区块链模板")
    private boolean enableBlockchain;

    @Schema(description = "生成方式", example = "ZIP_EXPORT")
    private String generateType;

    @Schema(description = "生成的 ZIP 文件名")
    private String zipFileName;

    @Schema(description = "ZIP 下载地址")
    private String downloadUrl;

    @Schema(description = "请求来源 IP")
    private String requestIp;

    @Schema(description = "记录创建时间")
    private LocalDateTime createdAt;
}


